﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EnterPressEvent.aspx.cs"
    Inherits="WebTest.EnterPressEvent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="Script/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).keydown(function() 
        {
            if (event.keyCode == 13 || event.which == 13) 
            {
                $("#btnLogin").click();
            }
        });       
    </script>

</head>
<body>
    <form id="form1" runat="server" defaultbutton="">
    <div>
        <table>
            <tr>
                <td>
                    请输入用户名：
                </td>
                <td>
                    <asp:TextBox ID="txtUserPin" runat="server" />
                </td>
                <td>
                    <asp:Button ID="btnLogin" runat="server" Text="登录" Style="width: 40px" OnClick="btnLogin_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
